package com.spring.consumebackground.web.dao;

import java.util.HashMap;
import java.util.List;
import java.math.BigDecimal;

import com.spring.consumebackground.web.model.Card2;
import com.spring.consumebackground.web.model.Product;
import com.spring.membercardapi.web.model.*;



public interface ConsumeBackgroundMapper {
	List<HashMap> getMemberCard(String card_number);
	List<Card2> getMemberCardDetail(String card_number);
	List<HashMap> getRechargeCardDetailByMemberCard(String card_number);
	List<HashMap> getRechargeCardDetail(String card_number);
	List<Product> getProductList(HashMap hm);
	int getProductListCount(HashMap hm);
	
	String getBusinessTypeCodeByDeptID(String deptID);
	
	//结算接口开始
	String getUserIDByCardNumber(HashMap hm);

	int createOrder(HashMap hm);
	String getMembercardIDbyCardNumber(HashMap hm);
	int updateOrderAmount(HashMap hm);
	int createOrderDetail(HashMap hm);
	BigDecimal getMemberCardRemain(HashMap hm);
	int updateMemberCardRemain(HashMap hm);
	HashMap getRechargecardDetailByCardNumber(HashMap hm);
	int createOrderPayment(HashMap hm);
	int createOrderJournal(HashMap hm);
	int updateRechargeCardRemain(HashMap hm);
	int updateRemainQuantity(HashMap hm);
	
	//结算接口结束
	
	//课程签到
	HashMap getAppointmentByPhone(HashMap hm);
	HashMap getAppointmentByMemberCard(HashMap hm);
	HashMap CourseSignGetRechargecard(HashMap hm);
	HashMap CourseSignGetRechargecardByMemberCard(HashMap hm);
	List<HashMap<String,Object>> CourseSignGetMemberCard(HashMap hm);
	HashMap getOrderProduct(HashMap hm);
	int updateCourseAppointment(HashMap hm);
	
	String[] getAttendedCourseAppointmentID(HashMap hm);
	
	//课程签退
	
	List<HashMap<String,Object>> getRechargeFAamount(HashMap hm);
	int checkMembercard(HashMap hm);
	int checkRechargecard(HashMap hm);
	String[] getCourseAppointmentID(HashMap hm);
	
	
	//托班签到
	
	String[] getCareClassAppointmentID(HashMap hm);	
	String[] checkIsAttendCareClass(HashMap hm);	
	HashMap getCareClassAppointmentByPhone(HashMap hm);
	HashMap getCareClassAppointmentByCardNumber(HashMap hm);
	List<HashMap<String,Object>> careClassSignGetMemberCard(HashMap hm);
	HashMap getCareClassOrderProduct(HashMap hm);
	int updateCareClassAppointment(HashMap hm);
	
	int checkMemberCardHasCareClass(HashMap<String,Object> hm);
	List<HashMap<String,Object>> getMembercardCareClassByCardNumber(String cardNumber);
	
	String getCareClassNameByUserID(String userID);
	//托班签退
	
	String[] getSignOffAppointmentID(HashMap hm);
	int signOffAppointment(String id);	
	String getNameByOrderProductKidsParkID(String id);	
	int careClassRewrite(HashMap<String,Object> hm);
	int courseRewrite(HashMap<String,Object> hm);	
	String getUserBalance(String c_user_id);	
	int getIsNeedRegistration(HashMap<String,Object> hm);
	
	//订单撤销
	int delOrder(String orderID);
	int delOrderDetail(String orderID);
	int delOrderPayment(String orderID);
	int updateRemain(String orderID);
}
